package cn.itsource.basic.service;

import cn.itsource.PageList;
import cn.itsource.basic.query.BaseQuery;

import java.util.List;

public interface IBaseService<T> {
    //查询
    List<T> queryAll();
    //查询一个 queryOne(1L)
    T queryOne(Long id);
    //新增
    void save(T t);
    //修改
    void update(T t);
    // 删除
    void delete(Long id);
    //分页方法
    PageList queryPage(BaseQuery baseQuery);
}
